package ysq.xyg.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;


/**
 * 会员信息
 * */
@Table(name = "ddc_member")
public class Member implements Serializable {
    @Id
    private String id;
    //卡号
    @Column(name = "card_no")
    private String cardNo;
    @Column(name = "member_num")
    private int memberNum;
    //微信openid
    private String openid;
    //中文姓名
    private String name;
    //账号金额（单位为1)
    private Double money;
    //级别：1、普通会员，2、Vip会员
    private String grade;
    //头像
    @Column(name = "head_image")
    private String headImage;
    //微信昵称
    @Column(name = "nick_name")
    private String nickName;
    //手机号
    private String phone;
    //创建时间
    @Column(name = "create_time")
    private Date createTime;
    //区域管理员id
    @Column(name = "area_user_id")
    private String areaUserId;
    //间接介绍人id
    @Column(name = "one_user_id")
    private String oneUserId;
    //直接介绍人id
    @Column(name = "introduct_user_id")
    private String introductUserId;
    //微信unionid
    @Column(name = "unionid")
    private String unionid;
    //Vip到期时间
    @Column(name = "vip_end_time")
    private Date vipEndTime;

    //类型：1、个人，2、公司
    private String type;
    //公司名称
    @Column(name = "company_name")
    private String companyName;
    //英文姓名
    @Column(name = "english_name")
    private String englishName;
    //性别：1、男，2、女
    private String sex;
    //微信号
    private String wechat;
    //开户行
    private String bank;
    //账户名
    @Column(name = "account_name")
    private String accountName;
    //账号
    @Column(name = "account_num")
    private String accountNum;
    /**
     * 用户积分
     */
    private Integer integral;

    @Transient
    private int num;
    @Transient
    private String userId;
    @Transient
    private String startDate;
    @Transient
    private String endDate;
    /**
     * 总金额
     */
    @Transient
    private int allMoney;

    /**
     * 消费的金额
     */
    @Transient
    private int consumeMoney;

    @Transient
    private String memberIds;

    @Transient
    private String gradeName;

    //1、vip会员有效，2、Vip会员过期
    @Transient
    private String vipType;
    @Transient
    private String introductName;

    @Transient
    private String oneUserName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getAreaUserId() {
        return areaUserId;
    }

    public void setAreaUserId(String areaUserId) {
        this.areaUserId = areaUserId;
    }

    public String getOneUserId() {
        return oneUserId;
    }

    public void setOneUserId(String oneUserId) {
        this.oneUserId = oneUserId;
    }

    public String getIntroductUserId() {
        return introductUserId;
    }

    public void setIntroductUserId(String introductUserId) {
        this.introductUserId = introductUserId;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public Date getVipEndTime() {
        return vipEndTime;
    }

    public void setVipEndTime(Date vipEndTime) {
        this.vipEndTime = vipEndTime;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public int getAllMoney() {
        return allMoney;
    }

    public void setAllMoney(int allMoney) {
        this.allMoney = allMoney;
    }

    public int getConsumeMoney() {
        return consumeMoney;
    }

    public void setConsumeMoney(int consumeMoney) {
        this.consumeMoney = consumeMoney;
    }

    public String getMemberIds() {
        return memberIds;
    }

    public void setMemberIds(String memberIds) {
        this.memberIds = memberIds;
    }

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public String getVipType() {
        return vipType;
    }

    public void setVipType(String vipType) {
        this.vipType = vipType;
    }

    public int getMemberNum() {
        return memberNum;
    }

    public void setMemberNum(int memberNum) {
        this.memberNum = memberNum;
    }

    public String getIntroductName() {
        return introductName;
    }

    public void setIntroductName(String introductName) {
        this.introductName = introductName;
    }

    public String getOneUserName() {
        return oneUserName;
    }

    public void setOneUserName(String oneUserName) {
        this.oneUserName = oneUserName;
    }

    public Member(String oneUserId, String introductUserId) {
        this.oneUserId = oneUserId;
        this.introductUserId = introductUserId;
    }

    public Member() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getEnglishName() {
        return englishName;
    }

    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAccountNum() {
        return accountNum;
    }

    public void setAccountNum(String accountNum) {
        this.accountNum = accountNum;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }
}